#ifndef __RPC_TRANSMISSION_TCP_COMMON_H__
#define __RPC_TRANSMISSION_TCP_COMMON_H__

#include "ret.h"

#include <stdint.h>
#include <sys/types.h>
#include <unistd.h>

typedef enum _io_tag_t
{
    TCP_READ = 0,
    TCP_WRITE
}io_tag_t;

size_t tcp_safe_read(int fd, void *buf, int len);
size_t tcp_safe_write(int fd, void *buf, int len);

#endif